import Vue from "vue";
import App from "./App.vue";
import VueRouter from "vue-router";
import router from "./router";
import store from "./store";
// import ElementUI from "element-ui";
// import "element-ui/lib/theme-chalk/index.css";
import { Button, Loading, Message,Icon, Dialog,Cascader,Steps,Step,Empty } from "element-ui";
//引入重制和公共样式表
import "./assets/scss/reset.scss";
import "./assets/scss/common.scss";




Vue.use(Button);
Vue.use(Loading);
Vue.use(Icon);
Vue.use( Dialog);
Vue.use(Cascader);
Vue.use(Steps);
Vue.use(Step);
Vue.use(Empty);


// Vue.use(Message); 不能这样使用有坑
Vue.use(VueRouter);
Vue.prototype.$message = Message;
// Vue.use(ElementUI);
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
  //全局事件总线安装
  beforeCreate(){
    Vue.prototype.$bus = this;
  },
}).$mount("#app");
